package com.jiangyg.devtools.entity.code;

import com.jiangyg.devtools.ui.table.Column;

import java.io.Serializable;

import static com.jiangyg.devtools.ui.table.Column.Type.*;

/**
 * 类描述：模板定义
 *
 * @author jiangyg
 * @date 2023-08-27
 */
public class TemplateDefinition implements Serializable {

    /**
     * 选中状态
     */
    @Column(title = "选中", type = CheckBox)
    private boolean selected;

    /**
     * 模板名称
     */
    @Column(title = "模板名称", order = 2)
    private String name;

    /**
     * 模板内容
     */
    @Column(title = "模板内容", order = 3, type = EditorTextField)
    private String content;

    /**
     * 生成文件名
     */
    @Column(title = "生成文件名", order = 4)
    private String fname;

    /**
     * 生成路径
     */
    @Column(title = "生成包路径", order = 5, type = PackageChooser)
    private String path;

    @Column(title = "操作", order = 6, type = Operation)
    private String uuid;

    public TemplateDefinition() {
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

}
